

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait

import time

driver=webdriver.Edge()
driver.get('https://pypi.org/project/selenium/#files')
driver.maximize_window()
# 下载用click
driver.find_element(By.XPATH,'//*[@id="files"]/div[1]/div[2]/a[1]').click()
time.sleep(20)